Skip to content

Comments

[5.1.x] fix ssh keys permissions#142

Merged
uk-bolly merged 1 commit intoansible-lockdown:develfrom
bykvaadm:fix_5.1.x
Feb 23, 2026
Merged

[5.1.x] fix ssh keys permissions#142
uk-bolly merged 1 commit intoansible-lockdown:develfrom
bykvaadm:fix_5.1.x

Conversation

@bykvaadm
Copy link
Contributor

5.1.2 Ensure permissions on SSH private host key files are configured (Automated)
Audit:
Run the following script to verify SSH private host key files are owned by the root user and either:

  • OR -
    • owned by the group root and mode 0600 or more restrictive
    • owned by the group designated to own openSSH private keys and mode 0640 or more restrictive

5.1.3 Ensure permissions on SSH public host key files are configured (Automated)
Audit:
Run the following script to verify SSH public host key files are mode 0644 or more restrictive, owned by the root user, and owned by the root group:

Signed-off-by: Kondratev Alexander <info@bykvaadm.ru>
@bykvaadm bykvaadm changed the title fix ssh keys permissions [5.1.x] fix ssh keys permissions Feb 16, 2026
Copy link
Member

@uk-bolly uk-bolly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@uk-bolly uk-bolly merged commit 98c0681 into ansible-lockdown:devel Feb 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants